home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / java / slideshow / sources (skeleton) / playpausebutton.java < prev    next >
Encoding:
Java Source  |  2000-06-23  |  796 b   |  38 lines

  1. public class PlayPauseButton extends RolloverButton
  2. {
  3.     //Declare and define constants
  4.     //Insert "PlayPauseButton Constants"
  5.     
  6.     public void initImages()
  7.     {
  8.         //Initialize images and set the state for the PlayPauseButton
  9.         //Insert "PlayPauseButton initImages"
  10.     }
  11.     
  12.     /**
  13.      * Sets the state of the PlayPauseButton.
  14.      * @param the state to use.
  15.      * @see #PLAY_STATE
  16.      * @see #PAUSE_STATE
  17.      */
  18.     public void setState(int state)
  19.     {
  20.         //Handle switching states
  21.         //Insert "PlayPauseButton setState"
  22.     }
  23.     
  24.     /**
  25.      * Gets the state of the PlayPauseButton.
  26.      * @return the state currently in use.
  27.      * @see #PLAY_STATE
  28.      * @see #PAUSE_STATE
  29.      */
  30.     public int getState()
  31.     {
  32.         //Return the current state
  33.         //Insert "PlayPauseButton getState"
  34.     }    
  35.  
  36.     //Declare data members
  37.     //Insert "PlayPauseButton data members"
  38. }